﻿//
// UserGroupRepository.cs
//
// Authors:
//    Claus Jørgensen <10229@iha.dk>
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Data.Objects;
using System.Diagnostics.Contracts;

namespace RSD.Data
{
    /// <summary>
    /// Represents a UserGroup Repository.
    /// </summary>
    [ContractClass(typeof(Contracts.IUserGroupRepositoryContract))]
    public interface IUserGroupRepository : IRepository<UserGroup>
    {
    }

    /// <summary>
    /// Represents a UserGroup Repository.
    /// </summary>
    public sealed class UserGroupRepository : RepositoryBase<UserGroup>, IUserGroupRepository
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UserGroupRepository"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        public UserGroupRepository(IObjectContext context)
            : base(context)
        {
            Contract.Requires(context != null);
        }
    }
}
